#include<iostream>
#include<cstring>
using namespace std;
int arr[300];
int arr1[300];
int arr2[300];
char ans[300];
int main()
{
	char s1[300];
	char s2[300];
	cin >> s1 >> s2;
	int len1 = strlen(s1);
	int len2 = strlen(s2);
	int z = 0;
	for (int i = len1 - 1; i >= 0; i--)
	{
		arr1[z] = s1[i] - '0';
		z++;
	}
	z = 0;
	for (int i = len2 - 1; i >= 0; i--)
	{
		arr2[z] = s2[i] - '0';
		z++;
	}
	z = 0;
	int MAX = max(len1, len2);
	for (int i = 0; i <= MAX; i++)
	{
		arr[i] = arr1[i] + arr2[i] + z;
		if (arr[i] >= 10)
		{
			z++;
			arr[i] %= 10;
		}
		else
		{
			z = 0;
		}
	}
	int flag = 1;
	if (arr[MAX] != 0)
	{
		flag = 0;
	}
	if (flag == 1)
	{
		for (int i = MAX; i >= 0; i--)
		{
			ans[i] = arr[i] + '0';
		}
	}
	else
	{
		for (int i = MAX-1; i >= 0; i--)
		{
			ans[i] = arr[i] + '0';
		}
	}
	puts(ans);
	return 0;
}